package com.example.huffman;

/**
 * Created by Administrator on 2017/9/23 0023.
 */

public class ChildNode implements Comparable<ChildNode> {
    char c;
    int n;

    public ChildNode(char c, int n) {
        this.c = c;
        this.n = n;
    }


    @Override
    public int compareTo(ChildNode o) {
        if (this.n - o.n > 0) {
            return 1;
        }
        return -1;
    }
}
